#include "hard.h"
HUMITURE_DATA_Def HUMITURE_DATA;
void Send_Humiture_Data(void)
{
    SHT3X_GetTempAndHumi(&temperature,&humidity,REPEATAB_HIGH,MODE_CLKSTRETCH,50);
    sprintf(HUMITURE_DATA.temperature,"%2.2lf",(temperature+CALIBRATION_DATA.temp_b));
    Display_Data_TEM_HUM(0x00,0x00,HUMITURE_DATA.temperature);
    sprintf(HUMITURE_DATA.humidity,"%2.2lf",(humidity+CALIBRATION_DATA.hum_b));
    Display_Data_TEM_HUM(0x00,0x08,HUMITURE_DATA.humidity);
}
void Display_Data_TEM_HUM(u8 addr1,u8 addr2,char *progress)
{
    RECEIVE_ALLDATA.Send_Data[2]=8;
    RECEIVE_ALLDATA.Send_Data[3]=0x82;
    RECEIVE_ALLDATA.Send_Data[4]=addr1;
    RECEIVE_ALLDATA.Send_Data[5]=addr2;
    sprintf(&RECEIVE_ALLDATA.Send_Data[6],"%s",progress);
    USART_Send_Data(USART1,(u8*)RECEIVE_ALLDATA.Send_Data,11);
}
